#include <cstdio>
#include <cstring>

char s[100];

int main() {
	freopen("inst.txt","r",stdin);
	freopen("out.txt","w",stdout);
	for (int i = 0;i < 58;i++) {
		scanf("%s",s);
		int l = strlen(s);
		for (int j = l;j < 6;j++) s[j] = ' ';
		s[6] = 0;
		printf("%s\t",s);
		if (i % 8 == 7) puts("");
	}
	return 0;
}

